from flask_pymongo import PyMongo


class Mongo():
    def init(self,app):
        self.instance = PyMongo(app, uri="mongodb://localhost:20017/ironman")  # 开启数据库实例
